package org.sean.framework.kafka.logging.keying;


import ch.qos.logback.classic.spi.ILoggingEvent;

/**
 * A strategy that can create byte array key for a given {@link ILoggingEvent}.
 *
 * @param <E> E
 * @author xielei
 */
public interface KeyingStrategy<E> {

    /**
     * creates a byte array key for the given {@link ch.qos.logback.classic.spi.ILoggingEvent}
     *
     * @param e the logging event
     * @return key
     */
    String createKey(E e);

}
